﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="Usuarios.aspx.cs" Inherits="SIP.Funcionarios" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <br />
    <asp:Table ID="Table1" runat="server" CssClass="Tabla" Width="500" HorizontalAlign="Center">
        <asp:TableHeaderRow CssClass="TablaHeader">
            <asp:TableHeaderCell ColumnSpan="2">
                Mantenimiento de Usuarios
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        <asp:TableRow Height="22px">
            <asp:TableCell>
            </asp:TableCell>
            <asp:TableCell>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>Diócesis</asp:TableCell><asp:TableCell>
                <asp:DropDownList ID="ddlDiocesis" runat="server" CssClass="textEntry" Width="250px" onselectedindexchanged="ddlDiocesis_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
                <asp:TableRow>
            <asp:TableCell>Parroquia</asp:TableCell><asp:TableCell>
                <asp:DropDownList ID="ddlParroquia" runat="server" CssClass="textEntry" Width="250px" ></asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>Perfil</asp:TableCell>
            <asp:TableCell>
               <asp:DropDownList ID="ddlPerfil" runat="server" CssClass="textEntry" Width="250px" ></asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
        </asp:TableRow>
        <asp:TableRow>
           <asp:TableCell>Nombre usuario</asp:TableCell>
           <asp:TableCell>
                <asp:TextBox runat="server" ID="txtNombre" TextMode="SingleLine" Width="250" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" SkinID="Requerido"
                ValidationGroup="v1" ControlToValidate="txtNombre"></asp:RequiredFieldValidator>
           </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>Pasword</asp:TableCell><asp:TableCell>
                <asp:TextBox runat="server" ID="Password" textMode = "Password" Width="250" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SkinID="Requerido"
                ValidationGroup="v1" ControlToValidate="Password"></asp:RequiredFieldValidator>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>Confirmar Pasword</asp:TableCell><asp:TableCell>
                <asp:TextBox runat="server" ID="ConfirmPassword" textMode ="Password" Width="250" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SkinID="Requerido"
                ValidationGroup="v1" ControlToValidate="ConfirmPassword"></asp:RequiredFieldValidator>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>Activo</asp:TableCell><asp:TableCell>
                <asp:CheckBox ID="chkactivo" runat="server" Checked="true" />
            </asp:TableCell></asp:TableRow><asp:TableRow>
      </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>        
            </asp:TableCell><asp:TableCell>
                <asp:ImageButton ID="Crear_Usuario" runat="server" ImageUrl="~/Images/btn_salvar.gif"
                    OnClick="Registrar" ValidationGroup="v1" />
                    &nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="btnCancelar" runat="server" ImageUrl="~/Images/btn_cancelar.gif"
                    OnClick="Cancelar" />
            </asp:TableCell></asp:TableRow><asp:TableFooterRow Height="22">
            <asp:TableCell>
            </asp:TableCell><asp:TableCell>
            </asp:TableCell></asp:TableFooterRow></asp:Table></asp:Content>